<template>
  <scroll class="scroll-container">
    <div>
      <!-- mine -->
      <div class="hodi">
        <img
          class="user-img"
          src="https://m.mi.com/static/img/avatar.76a75b8f17.png"
        />
        <div class="name">登录/注册</div>
      </div>

      <div class="order">
        <div class="order-left">我的订单</div>
        <div class="order-right">
          全部订单 <i class="iconfont icondayuhao"></i>
        </div>
      </div>

      <div class="myOrder">
        <ul class="icon">
          <li>
            <a href="#">
              <i class="iconfont icondaifukuan"></i>
              <p>待付款</p>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="iconfont icondaishouhuo"></i>
              <p>待收货</p>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="iconfont iconweixiu"></i>
              <p>退换修</p>
            </a>
          </li>
        </ul>
      </div>

      <div class="ui-line"></div>

      <div class="items">
        <li>
          <a href="#">
            <i class="iconfont iconwangguan color-fdbf2e"></i>
            <cite>会员中心</cite>
          </a>
        </li>
        <li>
          <a href="#">
            <i class="iconfont iconyouhuiquan color-51bbe0"></i>
            <cite>我的优惠</cite>
          </a>
        </li>
      </div>
      <div class="ui-line"></div>
      <div class="items">
        <li>
          <a href="#">
            <i class="iconfont iconfuwu color-fa7b6e"></i>
            <cite>服务中心</cite>
          </a>
        </li>
        <li>
          <a href="#">
            <i class="icon iconfont iconjia color-ff8b43"></i>
            <cite>小米之家</cite>
          </a>
        </li>
      </div>
      <div class="ui-line"></div>
      <div class="items">
        <li class="mi-fcode">
          <a href="#">
            <i class="iconfont icondp-float color-ffb302"></i>
            <cite>我的F码</cite>
          </a>
        </li>
        <li class="mi-fma">
          <a href="#">
            <i class="iconfont iconlipin color-f5a623"></i>
            <cite>礼物兑换码</cite>
          </a>
        </li>
      </div>
      <div class="ui-line"></div>
      <div class="items">
        <li class="mi-sett">
          <a href="#">
            <i class="iconfont iconshezhi color-6b6e73"></i>
            <cite>设置</cite>
          </a>
        </li>
      </div>
    </div>
  </scroll>
</template>

<script type="text/ecmascript-6">
import Scroll from 'common/scroll/scroll'

export default {
  components: {
    Scroll
  }
}

</script>

<style lang="stylus" scoped ref="stylesheet/stylus">
.scroll-container {
  height: 100%;
  overflow: hidden;
}

.al {
  display: flex;
}

.ui-line {
  height: 0.2rem;
  background: #f5f5f5;
  overflow: hidden;
  clear: both;
}

.hodi {
  background: url('https://m.mi.com/static/img/bg.63c8e19851.png') center 0 #f37d0f;
  width: 100%;
  height: 100%;
  background-size: auto 100%;
  height: 1.6rem;
  display: flex;
  align-items: center;

  .name {
    height: 13.6px;
    color: #fff;
    // color: blue;
    font-size: 0.24rem;
    text-align: left;
  }

  .user-img {
    margin: 0.16rem 0.32rem;
    width: 0.96rem;
    height: 0.96rem;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 100%;
    border: 3px solid hsla(0, 0%, 100%, 0.4);
    text-align: center;
  }
}

.order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);

  .order-left {
    font-size: 0.28rem;
    padding: 0 0 0 0.32rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
  }

  .order-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0.25rem;
    font-size: 0.24rem;

    i {
      font-size: 0.24rem;
    }
  }
}

.myOrder {
  background-color: #FFF;
  height: 1.68rem;

  ul {
    width: 100%;

    li {
      float: left;
      width: 33.3%;

      a {
        display: block;
        padding: 16px 0;
        width: 100%;
        text-align: center;
        font-size: 30px;
        color: #181818;

        i {
          display: inline-block;
          width: 0.48rem;
          height: 0.48rem;
          font-size: 0.4rem;
          padding-bottom: 0.16rem;
        }

        p {
          font-size: 14px;
        }
      }
    }
  }
}

.items {
  // background: #fff;
  li {
    position: relative;
    color: rgba(0, 0, 0, 0.54);
    list-style: none;
    height: 1.05rem;
    overflow: hidden;

    a {
      display: flex;

      .iconfont {
        display: inline-block;
        height: 1.05rem;
        width: 1.21rem;
        line-height: 1.05rem;
        text-align: center;
        font-size: 0.48rem;
      }

      cite {
        flex: 1;
        display: inline-block;
        height: 1.05rem;
        line-height: 1.05rem;
        font-size: 0.28rem;
        color: rgba(0, 0, 0, 0.87);
        font-style: normal;
        border-bottom: 0.01rem solid rgba(0, 0, 0, 0.15);
        box-sizing: border-box;
      }
    }

    &:last-child cite {
      border-bottom: none;
    }
  }

  li :after {
    content: '';
    position: absolute;
    right: 0.32rem;
    top: 50%;
    width: 0.2rem;
    height: 0.2rem;
    border-left: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: translate3d(0, -50%, 0) rotate(135deg);
    -webkit-transform: translate3d(0, -50%, 0) rotate(135deg);
  }

  li :not(:first-child):before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    height: 3px;
    background: #fff;
    width: 1.12rem;
  }

  a {
    background-color: transparent;
    outline: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
}

// color
.color-fdbf2e {
  color: #fdbf2e;
}

.color-51bbe0 {
  color: #51bbe0;
}

.color-fa7b6e {
  color: #fa7b6e;
}

.color-ff8b43 {
  color: #ff8b43;
}

.color-ffb302 {
  color: #ffb302;
}

.color-f5a623 {
  color: #f5a623;
}

.color-6b6e73 {
  color: #6b6e73;
}
</style>